#include "DcMotor.h"

void DcMotor::setup(){
pinMode(DcMotorPin1, OUTPUT);
pinMode(DcMotorPin2, OUTPUT);
pinMode(DcMotorPin3, OUTPUT);
pinMode(DcMotorPin4, OUTPUT);
}

void DcMotor::loop()
{
// set enable pin to high
digitalWrite(DcMotorPin1, HIGH);

// DC Result to Forward
digitalWrite(DcMotorPin2, LOW);
digitalWrite(DcMotorPin3, HIGH);

delay(10000);

// DC result to break
digitalWrite(DcMotorPin2, LOW);
digitalWrite(DcMotorPin3, LOW);

delay(1000);

// DC Result backward
digitalWrite(DcMotorPin2, HIGH);
digitalWrite(DcMotorPin3, LOW);

delay(10000);

// DC RESULT TO BREAK
digitalWrite(DcMotorPin2, LOW);
digitalWrite(DcMotorPin3, LOW);

delay(1000);
}
